package pers.lws.erp.service.impl;

import pers.lws.erp.entity.SysRole;
import pers.lws.erp.mapper.SysRoleMapper;
import pers.lws.erp.service.ISysRoleService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author liuws
 * @since 2020-09-11
 */
@Service
public class SysRoleServiceImpl extends ServiceImpl<SysRoleMapper, SysRole> implements ISysRoleService {

    @Override
    public List<SysRole> findRolesByUserId(Integer userId) {
        return baseMapper.findRolesByUserId(userId);
    }
}
